package com.wsc.it.parking.enums;

/**
 * @author wsc58888
 * @date 2022-3-15
 */
public enum JslifeInterfaceEnum {

    LOGIN_URL("http://www.jslife.com.cn/jsaims/login", "登录地址"),
    PROD_URL("http://www.jslife.com.cn/jsaims/as", "正式地址"),
    PARKING001_CID("0000000000000000", "客户号001"),
    PARKING001_USR("0000000000000000", "账号001"),
    PARKING001_PSW("0000000000000000", "密码001"),
    PARKING001_PARKCODE("p0000000000000000", "停车场编号001"),
    PARKING001_SIGNKEY("0000000000000000", "密钥001"),
    PARKING002_CID("0000000000000000", "客户号002"),
    PARKING002_USR("0000000000000000", "账号002"),
    PARKING002_PSW("0000000000000000", "密码002"),
    PARKING002_PARKCODE("p0000000000000000", "停车场编号002"),
    PARKING002_SIGNKEY("0000000000000000", "密钥002"),

    ORDERNO_0(0, "成功生成订单"),
    ORDERNO_1(1, "安全验证失败，前端设备异常"),
    ORDERNO_2(2, "未入场"),
    ORDERNO_5(5, "非临时卡"),
    ORDERNO_6(6, "未设置收费标准，前端停车场异常"),
    ORDERNO_9(9, "已缴费，超时滞留时间内"),
    ORDERNO_10(10, "正常免费时间段内"),
    ORDERNO_11(11, "打折免费时间段内"),
    ORDERNO_12(12, "打折全免时间段内"),
    ORDERNO_13(13, "打折减免时间段内"),
    ORDERNO_20(20, "超时收费不能使用卡券"),
    ORDERNO_1001(1001, "安全验证失败"),
    ORDERNO_1002(1002, "未入场"),
    ORDERNO_1003(1003, "商户号验证失败"),
    ORDERNO_1004(1004, "非临时卡"),
    ORDERNO_1005(1005, "未设置收费标准"),
    ORDERNO_1006(1006, "超时滞留时间内"),
    ORDERNO_1007(1007, "在正常免费时间内"),
    ORDERNO_1008(1008, "在打折减免时间内"),
    ORDERNO_1009(1009, "打折全免"),
    ORDERNO_1010(1010, "混合打折收费0元"),
    ORDERNO_1011(1011, "已缴费无法打折"),
    ORDERNO_9999(9999, "其它未知错误"),


    QUERYDOORS("3c.door.querydoors", "3.1.2.1 查询人员门禁设备"),
    OPENDOOR("3c.door.opendoor", "3.1.2.2 APP开门"),
    PASSPOPEDOM("3c.person.passpopedom", "3.1.2.3 获取住户二维码通行权限"),
    QUERYCARBYCARNO("3c.pay.querycarbycarno", "3.2.2.1 查询相似车辆"),
    CREATEORDERBYCARNO("3c.pay.createorderbycarno", "3.2.2.2 按车牌生成订单"),
    GENERATEORDERBYCARNO("3c.pay.generateorderbycarno", "3.2.2.3 按车牌生成订单（不限定车场）"),
    CREATEORDERBYCARD("3c.pay.createorderbycard", "3.2.2.4 按卡号生成订单"),
    NOTIFYORDERRESULT("3c.pay.notifyorderresult", "3.2.2.5 支付结果通知"),
    QUERYORDER("3c.pay.queryorder", "3.2.2.6 订单结果查询接口"),
    CLOSECURRENTDK("3c.pay.closecurrentdk", "3.2.2.7 车牌关闭本次代扣接口"),
    DISCOUNT("3c.order.discount", "3.2.2.8 车牌打折接口"),
    QUERYPERSONSBYTEL("3c.base.querypersonsbytel", "3.3.1.2.1 根据小区编号和手机号查询人员月卡信息"),
    QUERYPERSONSBYCAR("3c.base.querypersonsbycar", "3.3.1.2.2 根据小区编号和车牌号查询人员月卡信息"),
    QUERYDELAYLISTBYCARNO("3c.card.querydelaylistbycarno", "3.3.1.2.3 车牌号查询延期服务（卡）列表"),
    CARDDELAY("3c.card.carddelay", "3.3.1.2.4 下发月卡延期（按卡）"),
    DELAYBYCAR("3c.card.delaybycar", "3.3.1.2.5 下发月卡延期（按车牌号）"),
    DELAYBYMODE("3c.card.delaybymode", "3.3.1.2.6 下发月卡延期（支持卡或服务延期）"),
    QUERYCARDDEALYLIST("3c.card.querycarddealylist", "3.3.1.2.7 月卡缴费明细查询"),
    QRYSERVICEDELAYBYCARNO("3c.delay.qryservicedelaybycarno", "3.3.2.2.1 根据车牌查询服务信息"),
    QRYRENEWSTARTDATE("3c.delay.qryrenewstartdate", "3.3.2.2.2 查询服务延期开始日期"),
    QRYENDDATEANDMONEY("3c.delay.qryenddateandmoney", "3.3.2.2.3 查询服务延期结束日期及金额"),
    QRYUNUSEDTIMESECTION("3c.delay.qryunusedtimesection", "3.3.2.2.4 查询服务已延期未使用时间段"),
    DELAYDOWN("3c.delay.delaydown", "3.3.2.2.5 下发服务延期（只支持服务延期）"),
    DOWNCARCERTIFICATE("3c.park.downcarcertificate", "3.4.1.2.1 无牌车入场扫码（旧）"),
    GENERATEUNCARORDER("3c.order.generateuncarorder", "3.4.1.2.2 无牌车出场扫码（旧）"),
    DOWNINCARNO("3c.park.downincarno", "3.4.2.2.1 无牌车入场扫码（新）"),
    DOWNOUTCARNO("3c.park.downoutcarno", "3.4.2.2.2 无牌车出场扫码（新）"),
    QUERYPARKBOOKPARAM("3c.park.queryparkbookparam", "3.5.2.1 查询车场车位预定参数"),
    BOOKPARKSPACE("3c.park.bookparkspace", "3.5.2.2 车位预定协议"),
    QUERYPARKSPACEBOOKLIST("3c.park.queryparkspacebooklist", "3.5.2.3 预定记录历史查询"),
    DELAYPARKSPACEBOOK("3c.park.delayparkspacebook", "3.5.2.4 车位预定延期"),
    CONTROLBLUETOOTHCARLOCK("3c.park.controlbluetoothcarlock", "3.5.2.5 操控蓝牙车位锁"),
    LOCK("3c.lock.lock", "3.6.2.1 用户锁车/解锁接口协议"),
    QUERYLOCKEDCAR("3c.lock.querylockedcar", "3.6.2.2 查询当前锁定车辆"),
    QUERYCARHISTORY("3c.lock.querycarhistory", "3.6.2.3 查询车辆锁定历史记录"),
    INVITE("3c.visitor.invite", "3.7.2.1 发起邀访"),
    QUERYHISTROYINVITE("3c.visitor.queryhistroyinvite", "3.7.2.2 查询邀访记录"),
    CANCELINVITE("3c.visitor.cancelinvite", "3.7.2.3 访客取消邀请"),
    INVITEEXTEND("3c.visitor.inviteextend", "3.7.2.4 访客超时续时"),
    REPLACEPAYFEE("3c.visitor.replacepayfee", "3.7.2.5 代客多车缴费"),
    QUERYVISITORDOORINOUT("3c.door.queryvisitordoorinout", "3.7.2.6 访客门禁进出记录查询"),
    VERIFYUSER("3c.discount.verifyuser", "3.8.1.3 门店用户验权"),
    QUERSTOREINFO("3c.discount.querstoreinfo", "3.8.1.4 查询商户下属门店信息"),
    QUERYSALEPLAN("3c.discount.querysaleplan", "3.8.1.5 查询打折方案"),
    EXECUTEDISCOUNT("3c.discount.executediscount", "3.8.1.6 门店打折"),
    QUERYDISCOUNTRECORD("3c.discount.querydiscountrecord", "3.8.1.7 查询打折记录"),
    COUNTDISCOUNTRECORD("3c.discount.countdiscountrecord", "3.8.1.8 打折记录统计"),
    QUERYDISCOUNTMSGBYCARNO("3c.discount.querydiscountmsgbycarno", "3.8.1.9 查询指定车牌最近打折扣减记录"),
    CREATEFIXQRCODE("3c.discount.createFixQrCode", "3.8.1.10 查询指定车牌最近打折扣减记录"),
    PLAN("3c.create.plan", "3.9.2.1 创建优惠券方案接口"),
    MODIFYPLAN("3c.coupons.modify.plan", "3.9.2.2 优惠券方案修改接口"),
    ISSUEPLAN("3c.coupons.issue.plan", "3.9.2.3 优惠券方案发布接口"),
    DELAYPLAN("3c.coupons.delay.plan", "3.9.2.4 优惠券方案领用时间延期接口"),
    MODIFYSTATUS("3c.coupons.modify.status", "3.9.2.5 优惠券方案状态变更接口"),
    QUERYPARK("3c.coupons.query.park", "3.9.2.6 查询商户关联停车场接口"),
    RECEIVECOUPONS("3c.coupons.receive.coupons", "3.9.2.7 优惠券领用接口"),
    USECOUPONS("3c.coupons.use.coupons", "3.9.2.8 优惠券使用接口"),
    QUERYPARKSPACE("3c.park.queryparkspace", "3.10.2.1 查询停车场空车位数接口协议"),
    QUERYPARKPLACELIST("3c.park.queryparkplacelist", "3.10.2.2 停车场车位信息查询协议"),
    QUERYPARKINFO("3c.park.queryparkinfo", "3.10.2.3 停车场信息查询接口协议"),
    QUERYPARKSTANDARD("3c.park.queryparkstandard", "3.10.2.4 停车场收费标准查询接口协议"),
    QUERYCARPARKINGSPOT("3c.park.querycarparkingspot", "3.10.2.5 车辆停放位置查询协议"),
    QUERYPARKINRECORD("3c.park.queryparkinrecord", "3.10.2.6 车场进场信息查询"),
    QUERYFUZZYCARPARKINGSPOT("3c.park.queryfuzzycarparkingspot", "3.10.2.7 车牌模糊查询车辆停放位置查询协议"),
    QUERYPARKRESTSPACEBYAREA("3c.park.queryparkspace", "3.10.2.8 根据区域条件查询停车场空车位数协议"),
    QUERYAREABYTEL("3c.base.queryareabytel", "3.10.2.9 手机号码查询小区协议"),
    QUERYCARNOBYTEL("3c.base.querycarnobytel", "3.10.2.10 手机号码查询车牌号协议"),
    QUERYDOORCARDBYTEL("3c.base.querydoorcardbytel", "3.10.2.11 查询人员门禁卡信息"),
    ADDBLACKWHITELIST("3c.park.addblackwhitelist", "3.10.2.12 车牌黑白名单新增"),
    DELBLACKWHITELIST("3c.park.delblackwhitelist", "3.10.2.13 车牌黑白名单删除"),
    QRYCARNOBYCARDTYPENAME("3c.park.qrycarnobycardtypename", "3.10.2.14 根据卡类型名称查找车牌列表"),
    INFOSEARCH("3c.estate.infosearch", "3.11.2.1 物业人事资料查询接口协议"),
    REPORTINFOSUBMIT("3c.estate.reportinfosubmit", "3.11.2.2 报修信息上传协议"),
    QUERYREPORTINFO("3c.estate.queryreportinfo", "3.11.2.3 报修信息查询接口协议");

    private String url;
    private String desc;

    private int code;
    private String message;

    JslifeInterfaceEnum(String url, String desc) {
        this.url = url;
        this.desc = desc;
    }

    JslifeInterfaceEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public static JslifeInterfaceEnum math(int key) {
        JslifeInterfaceEnum result = null;
        for (JslifeInterfaceEnum s : values()) {
            if (s.getCode() == key) {
                result = s;
                break;
            }
        }
        return result;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
